<template>
	<view>
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		name: "courseDetails",
		data() {
			return {
				content: '',
				id: ''
			}
		},
		onLoad(ops) {
			if (ops.id) {
				this.id = ops.id
				this.getLandlordHelpInfo()
			}
		},
		methods: {
			async getLandlordHelpInfo() {
				let params = {
					id: this.id
				}
				const res = await this.$api.common.landlord('getLandlordHelpInfo', params)
				if (res.code === 200) {
					uni.setNavigationBarTitle({
						title: res.data.title
					})
					this.content = res.data.content
				}
			},

		}
	}
</script>

<style>
</style>
